package com.lxb.myforum.repository

import org.springframework.data.jpa.repository.JpaSpecificationExecutor
import org.springframework.data.repository.PagingAndSortingRepository
import org.springframework.stereotype.Repository

import com.lxb.myforum.pojo.Menu

@Repository("menuRepository")
interface MenuRepository : PagingAndSortingRepository<Menu, Long>, JpaSpecificationExecutor<Menu> {
    fun findByParentId(parentId: Long?): List<Menu>
}